import java.util.Scanner;

public class BankTest {
    
    public static void main(String[] args ){
        int option ;
        Bank bank = new Bank();
        Scanner in = new Scanner(System.in);
        try {
            do {
                System.out.println(" *** MENU ***");
                System.out.println("1. Tao tai khoan moi");
                System.out.println("2. Rut tien");
                System.out.println("3. Gui tien");
                System.out.println("4. Xem thong tin tai khoan");
                System.out.println("5. Thoat");
                System.out.print("Lua chon: ");
                option = in.nextInt();
                
                switch(option){
                    case 1:
                        bank.creatAccount();
                        break;
                    case 2:
                        bank.withdraw();
                        break;
                    case 3:
                        bank.deposit();
                        break;
                    case 4:
                        bank.display();
                        break;
                }
            } while(option > 0 && option < 5);
        } catch(Exception e) {
            System.out.println("Loi nhap so!");
        }
    }
}
